home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / info / emacs-8 (.txt) < prev    next >
GNU Info File  |  1994-10-05  |  50KB  |  908 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3. File: emacs,  Node: Frames,  Next: Major Modes,  Prev: Windows,  Up: Top
  4. Frames and X Windows
  5. ********************
  6.    When using the X Window System, you can create multiple windows at
  7. the X level in a single Emacs session.  Each X window that belongs to
  8. Emacs displays a "frame" which can contain one or several Emacs windows.
  9. A frame initially contains a single general-purpose Emacs window which
  10. you can subdivide vertically or horizontally into smaller windows.  A
  11. frame normally contains its own echo area and minibuffer, but you can
  12. make frames that don't have these--they use the echo area and
  13. minibuffer of another frame.
  14.    Editing you do in one frame also affects the other frames.  For
  15. instance, if you put text in the kill ring in one frame, you can yank it
  16. in another frame.  If you exit Emacs through `C-x C-c' in one frame, it
  17. terminates all the frames.  To delete just one frame, use `C-x 5 0'.
  18.    To avoid confusion, we reserve the word "window" for the
  19. subdivisions that Emacs implements, and never use it to refer to a
  20. frame.
  21. * Menu:
  22. * Mouse Commands::     Moving, cutting, and pasting, with the mouse.
  23. * Secondary Selection::Cutting without altering point and mark.
  24. * Mouse References::   Using the mouse to select an item from a list.
  25. * Mode Line Mouse::    Mouse clicks on the mode line.
  26. * Creating Frames::    Creating additional Emacs frames with various contents.
  27. * Special Buffer Frames::  You can make certain buffers have their own frames.
  28. * Frame Parameters::   Changing the colors and other modes of frames.
  29. * Scroll Bars::           How to enable and disable scroll bars; how to use them.
  30. * Menu Bars::           Enabling and disabling the menu bar.
  31. * Faces::           How to change the display style using faces.
  32. * Modifying Faces::    How to change what a particular face looks like.
  33. * Misc X::           Iconifying and deleting frames.    Region highlighting.
  34. File: emacs,  Node: Mouse Commands,  Next: Secondary Selection,  Up: Frames
  35. Mouse Commands
  36. ==============
  37.    The mouse commands for selecting and copying a region are mostly
  38. compatible with the `xterm' program.  You can use the same mouse
  39. commands for copying between Emacs and other X client programs.
  40. `Mouse-1'
  41.      Move point to where you click (`mouse-set-point').  This is
  42.      normally the left button.
  43. `Drag-Mouse-1'
  44.      Set the region to the text you select by dragging, and copy it to
  45.      the kill ring (`mouse-set-region').  You can specify both ends of
  46.      the region with this single command.
  47.      If you move the mouse off the top or bottom of the window while
  48.      dragging, the window scrolls at a steady rate until you move the
  49.      mouse back into the window.  This way, you can select regions that
  50.      don't fit entirely on the screen.
  51. `Mouse-2'
  52.      Yank the last killed text, where you click (`mouse-yank-at-click').
  53.      This is normally the middle button.
  54. `Mouse-3'
  55.      This command, `mouse-save-then-kill', has several functions
  56.      depending on where you click and the status of the region.
  57.      If you have a highlighted region, or if the region was set just
  58.      before by dragging button 1, `Mouse-3' adjusts the nearer end of
  59.      the region by moving it to where you click.  The adjusted region's
  60.      text also replaces the old region's text in the kill ring.
  61.      Otherwise, `Mouse-3' sets mark where you click, without changing
  62.      point.  It copies the new region to the kill ring.
  63.      If you originally specified the region using a double or triple
  64.      `Mouse-1', so that the region is defined to consist of entire words
  65.      or lines, then adjusting the region also proceeds by entire words
  66.      or lines.
  67.      If you use `Mouse-3' twice in a row at the same place, that kills
  68.      the region already selected.
  69. `Double-Mouse-1'
  70.      This key sets the region around the word which you click on.
  71. `Double-Drag-Mouse-1'
  72.      This key selects a region made up of the words that you drag
  73.      across.
  74. `Triple-Mouse-1'
  75.      This key sets the region around the line which you click on.
  76. `Triple-Drag-Mouse-1'
  77.      This key selects a region made up of the lines that you drag
  78.      across.
  79.    The simplest way to kill text with the mouse is to press `Mouse-1'
  80. at one end, then press `Mouse-3' twice at the other end.  *Note
  81. Killing::.  To copy the text into the kill ring without deleting it
  82. from the buffer, press `Mouse-3' just once--or just drag across the
  83. text with `Mouse-1'.  Then you can copy it elsewhere by yanking it.
  84.    To yank the killed or copied text somewhere else, move the mouse
  85. there and press `Mouse-2'.  *Note Yanking::.  However, if
  86. `mouse-yank-at-point' is non-`nil', `Mouse-2' yanks at point.  Then it
  87. does not matter precisely where you click; all that matters is which
  88. window you click on.  The default value is `nil'.  This variable also
  89. effects yanking the secondary selection.
  90.    To copy text to another X window, kill it or save it in the kill
  91. ring.  Under X, this also sets the "primary selection".  Then use the
  92. "paste" or "yank" command of the program operating the other window to
  93. insert the text from the selection.
  94.    To copy text from another X window, use the "cut" or "copy" command
  95. of the program operating the other window, to select the text you want.
  96. Then yank it in Emacs with `C-y' or `Mouse-2'.
  97.    When Emacs puts text into the kill ring, or rotates text to the front
  98. of the kill ring, it sets the "primary selection" in the X server.
  99. This is how other X clients can access the text.  Emacs also stores the
  100. text in the cut buffer, but only if the text is short enough
  101. (`x-cut-buffer-max' specifies the maximum number of characters);
  102. putting long strings in the cut buffer can be slow.
  103.    The commands to yank the first entry in the kill ring actually check
  104. first for a primary selection in another program; after that, they check
  105. for text in the cut buffer.  If neither of those sources provides text
  106. to yank, the kill ring contents are used.
  107. File: emacs,  Node: Secondary Selection,  Next: Mouse References,  Prev: Mouse Commands,  Up: Frames
  108. Secondary Selection
  109. ===================
  110.    The "secondary selection" is another way of selecting text using X.
  111. It does not use point or the mark, so you can use it to kill text
  112. without setting point or the mark.
  113. `M-Drag-Mouse-1'
  114.      Set the secondary selection, with one end at the place where you
  115.      press down the button, and the other end at the place where you
  116.      release it (`mouse-set-secondary').  The highlighting appears and
  117.      changes as you drag.
  118.      If you move the mouse off the top or bottom of the window while
  119.      dragging, the window scrolls at a steady rate until you move the
  120.      mouse back into the window.  This way, you can mark regions that
  121.      don't fit entirely on the screen.
  122. `M-Mouse-1'
  123.      Set one endpoint for the "secondary selection"
  124.      (`mouse-start-secondary').
  125. `M-Mouse-3'
  126.      Make a secondary selection, using the place specified with
  127.      `M-Mouse-1' as the other end (`mouse-secondary-save-then-kill').
  128.      A second click at the same place kills the secondary selection
  129.      just made.
  130. `M-Mouse-2'
  131.      Insert the secondary selection where you click
  132.      (`mouse-kill-secondary').  This places point at the end of the
  133.      yanked text.
  134.    Double or triple clicking of `M-Mouse-1' operates on words and
  135. lines, much like `Mouse-1'.
  136.    If `mouse-yank-at-point' is non-`nil', `M-Mouse-2' yanks at point.
  137. Then it does not matter precisely where you click; all that matters is
  138. which window you click on.  *Note Mouse Commands::.
  139. File: emacs,  Node: Mouse References,  Next: Mode Line Mouse,  Prev: Secondary Selection,  Up: Frames
  140. Following References with the Mouse
  141. ===================================
  142.    Some Emacs buffers display lists of various sorts.  These include
  143. lists of files, of buffers, of possible completions, of matches for a
  144. pattern, and so on.
  145.    Since yanking text into these buffers is not very useful, most of
  146. them define `Mouse-2' specially, as a command to use or view the item
  147. you click on.
  148.    For example, if you click `Mouse-2' on a file name in a Dired
  149. buffer, you visit the that file.  If you click `Mouse-2' on an error
  150. message in the `*Compilation*' buffer, you go to the source code for
  151. that error message.  If you click `Mouse-2' on a completion in the
  152. `*Completions*' buffer, you choose that completion.
  153.    You can usually tell when `Mouse-2' has this special sort of meaning
  154. because the sensitive text highlights when you move the mouse over it.
  155. File: emacs,  Node: Mode Line Mouse,  Next: Creating Frames,  Prev: Mouse References,  Up: Frames
  156. Mode Line Mouse Commands
  157. ========================
  158.    You can use mouse clicks on window mode lines to select and
  159. manipulate windows.
  160. `Mouse-1'
  161.      `Mouse-1' on a mode line selects the window above.  By dragging
  162.      `Mouse-1' on the mode line, you can move it, thus changing the
  163.      height of the windows above and below.
  164. `Mouse-2'
  165.      `Mouse-2' on a mode line expands that window to fill its frame.
  166. `Mouse-3'
  167.      `Mouse-3' on a mode line deletes the window above.
  168. `C-Mouse-2'
  169.      `C-Mouse-2' on a mode line splits the window above horizontally,
  170.      above the place in the mode line where you click.
  171.    `C-Mouse-2' on a scroll bar splits the corresponding window
  172. vertically.  *Note Split Window::.
  173. File: emacs,  Node: Creating Frames,  Next: Special Buffer Frames,  Prev: Mode Line Mouse,  Up: Frames
  174. Creating Frames
  175. ===============
  176.    The prefix key `C-x 5' is analogous to `C-x 4', with parallel
  177. subcommands.  The difference is that `C-x 5' commands create a new
  178. frame rather than just a new window in the selected frame  (*Note Pop
  179. Up Window::).  If an existing visible or iconified frame already
  180. displays the requested material, these commands use the existing frame,
  181. after raising or deiconifying as necessary.
  182.    The various `C-x 5' commands differ in how they find or create the
  183. buffer to select:
  184. `C-x 5 2'
  185.      Create a new frame (`make-frame').
  186. `C-x 5 b BUFNAME RET'
  187.      Select buffer BUFNAME in another window.  This runs
  188.      `switch-to-buffer-other-frame'.
  189. `C-x 5 f FILENAME RET'
  190.      Visit file FILENAME and select its buffer in another frame.  This
  191.      runs `find-file-other-frame'.  *Note Visiting::.
  192. `C-x 5 d DIRECTORY RET'
  193.      Select a Dired buffer for directory DIRECTORY in another frame.
  194.      This runs `dired-other-frame'.  *Note Dired::.
  195. `C-x 5 m'
  196.      Start composing a mail message in another frame.  This runs
  197.      `mail-other-frame'.  It is the other-frame variant of `C-x m'.
  198.      *Note Sending Mail::.
  199. `C-x 5 .'
  200.      Find a tag in the current tag table in another frame.  This runs
  201.      `find-tag-other-frame', the multiple-frame variant of `M-.'.
  202.      *Note Tags::.
  203. `C-x 5 r FILENAME RET'
  204.      Visit file FILENAME read-only, and select its buffer in another
  205.      frame.  This runs `find-file-read-only-other-frame'.  *Note
  206.      Visiting::.
  207.    You can control the appearance of new frames you create by setting
  208. the frame parameters in `default-frame-alist'.  You can use the
  209. variable `initial-frame-alist' to specify parameters that affect only
  210. the initial frame.  *Note Initial Parameters: (elisp)Initial
  211. Parameters, for more information.
  212. File: emacs,  Node: Special Buffer Frames,  Next: Frame Parameters,  Prev: Creating Frames,  Up: Frames
  213. Special Buffer Frames
  214. =====================
  215.    You can make certain chosen buffers, for which Emacs normally creates
  216. a second window when you have just one window, appear in special frames
  217. of their own.  To do this, set the variable
  218. `special-display-buffer-names' to a list of buffer names; any buffer
  219. whose name is in that list automatically gets a special frame when it
  220. is to be displayed in another window.
  221.    For example, if you set the variable this way,
  222.      (setq special-display-buffer-names
  223.            '("*Completions*" "*grep*" "*tex-shell*"))
  224. then completion lists, `grep' output and the TeX mode shell buffer get
  225. individual frames of their own.  These frames, and the windows in them,
  226. are never automatically split or reused for any other buffers.  They
  227. continue to show the buffers they were created for, unless you alter
  228. them by hand.  Killing the special buffer deletes its frame
  229. automatically.
  230.    More generally, you can set `special-display-regexps' to a list of
  231. regular expressions; then a buffer gets its own frame if its name
  232. matches any of those regular expressions. (Once again, this applies only
  233. to buffers that normally get displayed for you in a separate window.)
  234.    The variable `special-display-frame-alist' specifies the frame
  235. parameters for these frames.  It has a default value, so you don't need
  236. to set it.
  237. File: emacs,  Node: Frame Parameters,  Next: Scroll Bars,  Prev: Special Buffer Frames,  Up: Frames
  238. Setting Frame Parameters
  239. ========================
  240.    This section describes commands for altering the display style and
  241. window management behavior of the selected frame.
  242. `M-x set-foreground-color RET COLOR RET'
  243.      Specify color COLOR for the foreground of the selected frame.
  244. `M-x set-background-color RET COLOR RET'
  245.      Specify color COLOR for the background of the selected frame.
  246. `M-x set-cursor-color RET COLOR RET'
  247.      Specify color COLOR for the cursor of the selected frame.
  248. `M-x set-mouse-color RET COLOR RET'
  249.      Specify color COLOR for the mouse cursor when it is over the
  250.      selected frame.
  251. `M-x set-border-color RET COLOR RET'
  252.      Specify color COLOR for the border of the selected frame.
  253. `M-x auto-raise-mode'
  254.      Toggle whether or not the selected frame should auto-raise.
  255.      Auto-raise means that every time you move the mouse onto the
  256.      frame, it raises the frame.
  257.      Note that this auto-raise feature is implemented by Emacs itself.
  258.      Some window managers also implement auto-raise.  If you enable
  259.      auto-raise for Emacs frames in your X window manager, it should
  260.      work, but it is beyond Emacs's control and therefore
  261.      `auto-raise-mode' has no effect on it.
  262. `M-x auto-lower-mode'
  263.      Toggle whether or not the selected frame should auto-lower.
  264.      Auto-lower means that every time you move the mouse off of the
  265.      frame, the frame moves to the bottom of the stack of X windows.
  266.      The command `auto-lower-mode' has no effect on auto-lower
  267.      implemented by the X window manager.  To control that, you must use
  268.      the appropriate window manager features.
  269. `M-x set-default-font RET FONT RET'
  270.      Specify font FONT as the default for the selected frame.  *Note
  271.      Font X::, for ways to list the available fonts on your system.
  272.      You can also set a frame's default font through a pop-up menu.
  273.      Press `C-Mouse-3' to activate this menu.
  274.    In Emacs versions that use an X toolkit, the color-setting and
  275. font-setting functions don't affect menus and the menu bar, since they
  276. are displayed by their own widget classes.  To change the appearance of
  277. the menus and menu bar, you must use X resources (*note Resources X::.).
  278. *Note Colors X::, regarding colors.  *Note Font X::, regarding choice of
  279. font.
  280.    For information on frame parameters and customization, see *Note
  281. Frame Parameters: (elisp)Frame Parameters.
  282. File: emacs,  Node: Scroll Bars,  Next: Menu Bars,  Prev: Frame Parameters,  Up: Frames
  283. Scroll Bars
  284. ===========
  285.    When using X, Emacs normally makes a "scroll bar" at the right of
  286. each Emacs window.  The scroll bar runs the height of the window, and
  287. shows a moving rectangular inner box which represents the portion of the
  288. buffer currently displayed.  The entire height of the scroll bar
  289. represents the entire length of the buffer.
  290.    You can use `Mouse-2' (normally, the middle button) in the scroll
  291. bar to move or drag the inner box up and down.  If you move it to the
  292. top of the scroll bar, you see the top of the buffer.  If you move it to
  293. the bottom of the scroll bar, you see the bottom of the buffer.
  294.    The left and right buttons in the scroll bar scroll by controlled
  295. increments.  `Mouse-1' (normally, the left button) moves the line at
  296. the level where you click up to the top of the window.  `Mouse-3'
  297. (normally, the right button) moves the line at the top of the window
  298. down to the level where you click.  By clicking repeatedly in the same
  299. place, you can scroll by the same distance over and over.
  300.    Aside from scrolling, you can also click `C-Mouse-2' in the scroll
  301. bar to split a window vertically.  The split occurs on the line where
  302. you click.
  303.    You can enable or disable Scroll Bar mode with the command `M-x
  304. scroll-bar-mode'.  With no argument, it toggles the use of scroll bars.
  305. With an argument, it turns use of scroll bars on if and only if the
  306. argument is positive.  This command applies to all frames, including
  307. frames yet to be created.
  308.    To enable or disable scroll bars for just the selected frame, use the
  309. `M-x toggle-scroll-bar' command.
  310. File: emacs,  Node: Menu Bars,  Next: Faces,  Prev: Scroll Bars,  Up: Frames
  311. Menu Bars
  312. =========
  313.    By default, each Emacs frame has a menu bar at the top which you can
  314. use to perform certain common operations.  There's no need to describe
  315. them in detail here, as you can more easily see for yourself; also, we
  316. may change them and add to them in subsequent Emacs versions.
  317.    Each of the operations in the menu bar is bound to an ordinary Emacs
  318. command which you can invoke equally well with `M-x' or with its own
  319. key bindings.  The menu lists one equivalent key binding (if the command
  320. has any) at the right margin.  To see the command's name and
  321. documentation, type `C-h k' and then select the menu bar item you are
  322. interested in.
  323.    You can turn display of menu bars on or off with `M-x menu-bar-mode'.
  324. With no argument, this command toggles Menu Bar mode, a minor mode.
  325. With an argument, the command turns Menu Bar mode on if the argument is
  326. positive, off if the argument is not positive.
  327. File: emacs,  Node: Faces,  Next: Modifying Faces,  Prev: Menu Bars,  Up: Frames
  328. Using Multiple Typefaces
  329. ========================
  330.    When using Emacs with X, you can set up multiple styles of displaying
  331. characters.  The aspects of style that you can control are the type
  332. font, the foreground color, the background color, and whether to
  333. underline.  Emacs 19.26 does not support faces on MS-DOS, but future
  334. versions will support them partially (*note MS-DOS::.).
  335.    The way you control display style is by defining named "faces".
  336. Each face can specify a type font, a foreground color, a background
  337. color, and an underline flag; but it does not have to specify all of
  338. them.
  339.    The style of display used for a given character in the text is
  340. determined by combining several faces.  Which faces to use is always set
  341. up by Lisp programs, at present, by means of text properties and
  342. overlays.  Any aspect of the display style that isn't specified by
  343. overlays or text properties comes from the frame itself.
  344.    To see what faces are currently defined, and what they look like,
  345. type `M-x list-faces-display'.  It's possible for a given face to look
  346. different in different frames; this command shows the appearance in the
  347. frame in which you type it.  Here's a list of the standardly defined
  348. faces:
  349. `default'
  350.      This face is used for ordinary text that doesn't specify any other
  351.      face.
  352. `modeline'
  353.      This face is used for mode lines.  By default, it's set up as the
  354.      inverse of the default face.  *Note Display Vars::.
  355. `highlight'
  356.      This face is used for highlighting portions of text, in various
  357.      modes.
  358. `region'
  359.      This face is used for displaying a selected region.
  360. `secondary-selection'
  361.      This face is used for displaying a secondary selection (*note
  362.      Secondary Selection::.).
  363. `bold'
  364.      This face uses a bold variant of the default font, if it has one.
  365. `italic'
  366.      This face uses an italic variant of the default font, if it has
  367.      one.
  368. `bold-italic'
  369.      This face uses a bold italic variant of the default font, if it
  370.      has one.
  371. `underline'
  372.      This face underlines text.
  373.    When Transient Mark mode is enabled, the text of the region is
  374. highlighted when the mark is active.  This uses the face named
  375. `region'; you can control the style of highlighting by changing the
  376. style of this face (*note Modifying Faces::.).  *Note Transient Mark::,
  377. for more information about Transient Mark mode and activation and
  378. deactivation of the mark.
  379.    One easy way to use faces is to turn on Font-Lock mode.  This minor
  380. mode, which is always local to a particular buffer, arranges to choose
  381. faces according to the syntax of the text you are editing.  It can
  382. recognize comments and strings in any major mode; for several major
  383. modes, it can also recognize and properly highlight various other
  384. important parts of the text.  To get the full benefit of Font-Lock mode,
  385. you need to choose a default font which has bold, italic, and
  386. bold-italic variants.
  387. File: emacs,  Node: Modifying Faces,  Next: Misc X,  Prev: Faces,  Up: Frames
  388. Modifying Faces
  389. ===============
  390.    Here are the commands users can use to change the font of a face:
  391. `M-x set-face-font RET FACE RET FONT RET'
  392.      Change face FACE to use font FONT.  *Note Font X::, for more
  393.      information about font naming under X.
  394. `M-x make-face-bold RET FACE RET'
  395.      Convert face FACE to use a bold version of its current font.
  396. `M-x make-face-italic RET FACE RET'
  397.      Convert face FACE to use a italic version of its current font.
  398. `M-x make-face-bold-italic RET FACE RET'
  399.      Convert face FACE to use a bold-italic version of its current font.
  400. `M-x make-face-unbold RET FACE RET'
  401.      Convert face FACE to use a non-bold version of its current font.
  402. `M-x make-face-unitalic RET FACE RET'
  403.      Convert face FACE to use a non-italic version of its current font.
  404.    Here are the commands for setting the colors and underline flag of a
  405. face:
  406. `M-x set-face-foreground RET FACE RET COLOR RET'
  407.      Use color COLOR for the foreground of characters in face FACE.
  408. `M-x set-face-background RET FACE RET COLOR RET'
  409.      Use color COLOR for the background of characters in face FACE.
  410. `M-x set-face-underline-p RET FACE RET FLAG RET'
  411.      Specify whether to underline characters in face FACE.
  412. `M-x invert-face RET FACE RET'
  413.      Swap the foreground and background colors of face FACE.
  414.    You can also use X resources to specify attributes of particular
  415. faces.  *Note Resources X::.
  416. File: emacs,  Node: Misc X,  Prev: Modifying Faces,  Up: Frames
  417. Miscellaneous X Window Features
  418. ===============================
  419.    The following commands do user-level management of frames under a
  420. window system:
  421. `C-z'
  422.      To iconify the selected Emacs frame, type `C-z'
  423.      (`iconify-or-deiconify-frame').  The normal meaning of `C-z', to
  424.      suspend Emacs, is not useful under a window system, so it has a
  425.      different binding in that case.
  426.      If you type this command on an Emacs frame's icon, it deiconifies
  427.      the frame.
  428. `C-x 5 0'
  429.      To delete the selected frame, type `C-x 5 0' (`delete-frame').
  430.      This is not allowed if there is only one frame.
  431. `M-x transient-mark-mode'
  432.      Under X Windows, when Transient Mark mode is enabled, Emacs
  433.      highlights the region when the mark is active.  This feature is
  434.      the main motive for using Transient Mark mode.  To toggle the
  435.      state of this mode, use the command `M-x transient-mark-mode'.
  436.      *Note Mark::.
  437. File: emacs,  Node: Major Modes,  Next: Indentation,  Prev: Frames,  Up: Top
  438. Major Modes
  439. ***********
  440.    Emacs provides many alternative "major modes", each of which
  441. customizes Emacs for editing text of a particular sort.  The major modes
  442. are mutually exclusive, and each buffer has one major mode at any time.
  443. The mode line normally shows the name of the current major mode, in
  444. parentheses (*note Mode Line::.).
  445.    The least specialized major mode is called "Fundamental mode".  This
  446. mode has no mode-specific redefinitions or variable settings, so that
  447. each Emacs command behaves in its most general manner, and each option
  448. is in its default state.  For editing text of a specific type that
  449. Emacs knows about, such as Lisp code or English text, you should switch
  450. to the appropriate major mode, such as Lisp mode or Text mode.
  451.    Selecting a major mode changes the meanings of a few keys to become
  452. more specifically adapted to the language being edited.  The ones which
  453. are changed frequently are TAB, DEL, and LFD.  The prefix key `C-c'
  454. normally contains mode-specific commands.  In addition, the commands
  455. which handle comments use the mode to determine how comments are to be
  456. delimited.  Many major modes redefine the syntactical properties of
  457. characters appearing in the buffer.  *Note Syntax::.
  458.    The major modes fall into three major groups.  Lisp mode (which has
  459. several variants), C mode, Fortran mode and others are for specific
  460. programming languages.  Text mode, Nroff mode, TeX mode and Outline
  461. mode are for editing English text.  The remaining major modes are not
  462. intended for use on users' files; they are used in buffers created for
  463. specific purposes by Emacs, such as Dired mode for buffers made by Dired
  464. (*note Dired::.), and Mail mode for buffers made by `C-x m' (*note
  465. Sending Mail::.), and Shell mode for buffers used for communicating
  466. with an inferior shell process (*note Interactive Shell::.).
  467.    Most programming language major modes specify that only blank lines
  468. separate paragraphs.  This is to make the paragraph commands useful.
  469. (*Note Paragraphs::.)  They also cause Auto Fill mode to use the
  470. definition of TAB to indent the new lines it creates.  This is because
  471. most lines in a program are usually indented.  (*Note Indentation::.)
  472. * Menu:
  473. * Choosing Modes::     How major modes are specified or chosen.
  474. File: emacs,  Node: Choosing Modes,  Prev: Major Modes,  Up: Major Modes
  475. How Major Modes are Chosen
  476. ==========================
  477.    You can select a major mode explicitly for the current buffer, but
  478. most of the time Emacs determines which mode to use based on the file
  479. name or on special text in the file.
  480.    Explicit selection of a new major mode is done with a `M-x' command.
  481. From the name of a major mode, add `-mode' to get the name of a command
  482. to select that mode.  Thus, you can enter Lisp mode by executing `M-x
  483. lisp-mode'.
  484.    When you visit a file, Emacs usually chooses the right major mode
  485. based on the file's name.  For example, files whose names end in `.c'
  486. are edited in C mode.  The correspondence between file names and major
  487. mode is controlled by the variable `auto-mode-alist'.  Its value is a
  488. list in which each element has the form
  489.      (REGEXP . MODE-FUNCTION)
  490. For example, one element normally found in the list has the form
  491. `("\\.c\\'" . c-mode)', and it is responsible for selecting C mode for
  492. files whose names end in `.c'.  (Note that `\\' is needed in Lisp
  493. syntax to include a `\' in the string, which is needed to suppress the
  494. special meaning of `.' in regexps.)  The only practical way to change
  495. this variable is with Lisp code.
  496.    You can specify which major mode should be used for editing a certain
  497. file by a special sort of text in the first nonblank line of the file.
  498. The mode name should appear in this line both preceded and followed by
  499. `-*-'.  Other text may appear on the line as well.  For example,
  500.      ;-*-Lisp-*-
  501. tells Emacs to use Lisp mode.  Such an explicit specification overrides
  502. any defaulting based on the file name.  Note how the semicolon is used
  503. to make Lisp treat this line as a comment.
  504.    Another format of mode specification is
  505.      -*-Mode: MODENAME;-*-
  506. which allows you to specify local variables as well, like this:
  507.      -*- mode: MODENAME; VAR: VALUE; ... -*-
  508. *Note File Variables::, for more information about this.
  509.    When you visit a file that does not specify a major mode to use, or
  510. when you create a new buffer with `C-x b', the variable
  511. `default-major-mode' specifies which major mode to use.  Normally its
  512. value is the symbol `fundamental-mode', which specifies Fundamental
  513. mode.  If `default-major-mode' is `nil', the major mode is taken from
  514. the previously selected buffer.
  515.    If you change the major mode of a buffer, you can go back to the
  516. major mode Emacs would choose automatically: use the command `M-x
  517. normal-mode' to do this.  This is the same function that `find-file'
  518. calls to choose the major mode.  It also processes the file's local
  519. variables list if any.
  520. File: emacs,  Node: Indentation,  Next: Text,  Prev: Major Modes,  Up: Top
  521. Indentation
  522. ***********
  523.    This chapter describes the Emacs commands that add, remove, or
  524. adjust indentation.
  525. `TAB'
  526.      Indent current line "appropriately" in a mode-dependent fashion.
  527. `LFD'
  528.      Perform RET followed by TAB (`newline-and-indent').
  529. `M-^'
  530.      Merge two lines (`delete-indentation').  This would cancel out the
  531.      effect of LFD.
  532. `C-M-o'
  533.      Split line at point; text on the line after point becomes a new
  534.      line indented to the same column that it now starts in
  535.      (`split-line').
  536. `M-m'
  537.      Move (forward or back) to the first nonblank character on the
  538.      current line (`back-to-indentation').
  539. `C-M-\'
  540.      Indent several lines to same column (`indent-region').
  541. `C-x TAB'
  542.      Shift block of lines rigidly right or left (`indent-rigidly').
  543. `M-i'
  544.      Indent from point to the next prespecified tab stop column
  545.      (`tab-to-tab-stop').
  546. `M-x indent-relative'
  547.      Indent from point to under an indentation point in the previous
  548.      line.
  549.    Most programming languages have some indentation convention.  For
  550. Lisp code, lines are indented according to their nesting in
  551. parentheses.  The same general idea is used for C code, though many
  552. details are different.
  553.    Whatever the language, to indent a line, use the TAB command.  Each
  554. major mode defines this command to perform the sort of indentation
  555. appropriate for the particular language.  In Lisp mode, TAB aligns the
  556. line according to its depth in parentheses.  No matter where in the
  557. line you are when you type TAB, it aligns the line as a whole.  In C
  558. mode, TAB implements a subtle and sophisticated indentation style that
  559. knows about many aspects of C syntax.
  560.    In Text mode, TAB runs the command `tab-to-tab-stop', which indents
  561. to the next tab stop column.  You can set the tab stops with `M-x
  562. edit-tab-stops'.
  563. * Menu:
  564. * Indentation Commands::  Various commands and techniques for indentation.
  565. * Tab Stops::             You can set arbitrary "tab stops" and then
  566.                             indent to the next tab stop when you want to.
  567. * Just Spaces::           You can request indentation using just spaces.
  568. File: emacs,  Node: Indentation Commands,  Next: Tab Stops,  Prev: Indentation,  Up: Indentation
  569. Indentation Commands and Techniques
  570. ===================================
  571.    To move over the indentation on a line, do `M-m'
  572. (`back-to-indentation').  This command, given anywhere on a line,
  573. positions point at the first nonblank character on the line.
  574.    To insert an indented line before the current line, do `C-a C-o
  575. TAB'.  To make an indented line after the current line, use `C-e LFD'.
  576.    If you just want to insert a tab character in the buffer, you can
  577. type `C-q TAB'.
  578.    `C-M-o' (`split-line') moves the text from point to the end of the
  579. line vertically down, so that the current line becomes two lines.
  580. `C-M-o' first moves point forward over any spaces and tabs.  Then it
  581. inserts after point a newline and enough indentation to reach the same
  582. column point is on.  Point remains before the inserted newline; in this
  583. regard, `C-M-o' resembles `C-o'.
  584.    To join two lines cleanly, use the `M-^' (`delete-indentation')
  585. command.  It deletes the indentation at the front of the current line,
  586. and the line boundary as well, replacing them with a single space.  As
  587. a special case (useful for Lisp code) the single space is omitted if
  588. the characters to be joined are consecutive open parentheses or closing
  589. parentheses, or if the junction follows another newline.  To delete
  590. just the indentation of a line, go to the beginning of the line and use
  591. `M-\' (`delete-horizontal-space'), which deletes all spaces and tabs
  592. around the cursor.
  593.    If you have a fill prefix, `M-^' deletes the fill prefix if it
  594. appears after the newline that is deleted.  *Note Fill Prefix::.
  595.    There are also commands for changing the indentation of several lines
  596. at once.  `C-M-\' (`indent-region') applies to all the lines that begin
  597. in the region; it indents each line in the "usual" way, as if you had
  598. typed TAB at the beginning of the line.  A numeric argument specifies
  599. the column to indent to, and each line is shifted left or right so that
  600. its first nonblank character appears in that column.  `C-x TAB'
  601. (`indent-rigidly') moves all of the lines in the region right by its
  602. argument (left, for negative arguments).  The whole group of lines
  603. moves rigidly sideways, which is how the command gets its name.
  604.    `M-x indent-relative' indents at point based on the previous line
  605. (actually, the last nonempty line).  It inserts whitespace at point,
  606. moving point, until it is underneath an indentation point in the
  607. previous line.  An indentation point is the end of a sequence of
  608. whitespace or the end of the line.  If point is farther right than any
  609. indentation point in the previous line, the whitespace before point is
  610. deleted and the first indentation point then applicable is used.  If no
  611. indentation point is applicable even then, `indent-relative' runs
  612. `tab-to-tab-stop' (*note Tab Stops::.).
  613.    `indent-relative' is the definition of TAB in Indented Text mode.
  614. *Note Text::.
  615. File: emacs,  Node: Tab Stops,  Next: Just Spaces,  Prev: Indentation Commands,  Up: Indentation
  616. Tab Stops
  617. =========
  618.    For typing in tables, you can use Text mode's definition of TAB,
  619. `tab-to-tab-stop'.  This command inserts indentation before point,
  620. enough to reach the next tab stop column.  If you are not in Text mode,
  621. this command can be found on the key `M-i'.
  622.    You can specify the tab stops used by `M-i'.  They are stored in a
  623. variable called `tab-stop-list', as a list of column-numbers in
  624. increasing order.
  625.    The convenient way to set the tab stops is with `M-x edit-tab-stops',
  626. which creates and selects a buffer containing a description of the tab
  627. stop settings.  You can edit this buffer to specify different tab
  628. stops, and then type `C-c C-c' to make those new tab stops take effect.
  629. In the tab stop buffer, `C-c C-c' runs the function
  630. `edit-tab-stops-note-changes' rather than its usual definition
  631. `save-buffer'.  `edit-tab-stops' records which buffer was current when
  632. you invoked it, and stores the tab stops back in that buffer; normally
  633. all buffers share the same tab stops and changing them in one buffer
  634. affects all, but if you happen to make `tab-stop-list' local in one
  635. buffer then `edit-tab-stops' in that buffer will edit the local
  636. settings.
  637.    Here is what the text representing the tab stops looks like for
  638. ordinary tab stops every eight columns.
  639.              :       :       :       :       :       :
  640.      0         1         2         3         4
  641.      0123456789012345678901234567890123456789012345678
  642.      To install changes, type C-c C-c
  643.    The first line contains a colon at each tab stop.  The remaining
  644. lines are present just to help you see where the colons are and know
  645. what to do.
  646.    Note that the tab stops that control `tab-to-tab-stop' have nothing
  647. to do with displaying tab characters in the buffer.  *Note Display
  648. Vars::, for more information on that.
  649. File: emacs,  Node: Just Spaces,  Prev: Tab Stops,  Up: Indentation
  650. Tabs vs. Spaces
  651. ===============
  652.    Emacs normally uses both tabs and spaces to indent lines.  If you
  653. prefer, all indentation can be made from spaces only.  To request this,
  654. set `indent-tabs-mode' to `nil'.  This is a per-buffer variable;
  655. altering the variable affects only the current buffer, but there is a
  656. default value which you can change as well.  *Note Locals::.
  657.    There are also commands to convert tabs to spaces or vice versa,
  658. always preserving the columns of all nonblank text.  `M-x tabify' scans
  659. the region for sequences of spaces, and converts sequences of at least
  660. three spaces to tabs if that can be done without changing indentation.
  661. `M-x untabify' changes all tabs in the region to appropriate numbers of
  662. spaces.
  663. File: emacs,  Node: Text,  Next: Programs,  Prev: Indentation,  Up: Top
  664. Commands for Human Languages
  665. ****************************
  666.    The term "text" has two widespread meanings in our area of the
  667. computer field.  One is data that is a sequence of characters.  Any file
  668. that you edit with Emacs is text, in this sense of the word.  The other
  669. meaning is more restrictive: a sequence of characters in a human
  670. language for humans to read (possibly after processing by a text
  671. formatter), as opposed to a program or commands for a program.
  672.    Human languages have syntactic/stylistic conventions that can be
  673. supported or used to advantage by editor commands: conventions involving
  674. words, sentences, paragraphs, and capital letters.  This chapter
  675. describes Emacs commands for all of these things.  There are also
  676. commands for "filling", which means rearranging the lines of a
  677. paragraph to be approximately equal in length.  The commands for moving
  678. over and killing words, sentences and paragraphs, while intended
  679. primarily for editing text, are also often useful for editing programs.
  680.    Emacs has several major modes for editing human language text.  If
  681. the file contains text pure and simple, use Text mode, which customizes
  682. Emacs in small ways for the syntactic conventions of text.  For text
  683. which contains embedded commands for text formatters, Emacs has other
  684. major modes, each for a particular text formatter.  Thus, for input to
  685. TeX, you would use TeX mode; for input to nroff, Nroff mode.  Outline
  686. mode provides special commands for operating on text with an outline
  687. structure.
  688. * Menu:
  689. * Words::         Moving over and killing words.
  690. * Sentences::     Moving over and killing sentences.
  691. * Paragraphs::      Moving over paragraphs.
  692. * Pages::      Moving over pages.
  693. * Filling::       Filling or justifying text.
  694. * Case::          Changing the case of text.
  695. * Text Mode::     The major modes for editing text files.
  696. * Outline Mode::  The major mode for editing outlines.
  697. * TeX Mode::      The major modes for editing input to the formatter TeX.
  698. * Nroff Mode::    The major mode for editing input to the formatter nroff.
  699. File: emacs,  Node: Words,  Next: Sentences,  Up: Text
  700. Words
  701. =====
  702.    Emacs has commands for moving over or operating on words.  By
  703. convention, the keys for them are all Meta characters.
  704. `M-f'
  705.      Move forward over a word (`forward-word').
  706. `M-b'
  707.      Move backward over a word (`backward-word').
  708. `M-d'
  709.      Kill up to the end of a word (`kill-word').
  710. `M-DEL'
  711.      Kill back to the beginning of a word (`backward-kill-word').
  712. `M-@'
  713.      Mark the end of the next word (`mark-word').
  714. `M-t'
  715.      Transpose two words or drag a word across other words
  716.      (`transpose-words').
  717.    Notice how these keys form a series that parallels the
  718. character-based `C-f', `C-b', `C-d', `C-t' and DEL.  `M-@' is cognate
  719. to `C-@', which is an alias for `C-SPC'.
  720.    The commands `M-f' (`forward-word') and `M-b' (`backward-word') move
  721. forward and backward over words.  These Meta characters are thus
  722. analogous to the corresponding control characters, `C-f' and `C-b',
  723. which move over single characters in the text.  The analogy extends to
  724. numeric arguments, which serve as repeat counts.  `M-f' with a negative
  725. argument moves backward, and `M-b' with a negative argument moves
  726. forward.  Forward motion stops right after the last letter of the word,
  727. while backward motion stops right before the first letter.
  728.    `M-d' (`kill-word') kills the word after point.  To be precise, it
  729. kills everything from point to the place `M-f' would move to.  Thus, if
  730. point is in the middle of a word, `M-d' kills just the part after
  731. point.  If some punctuation comes between point and the next word, it
  732. is killed along with the word.  (If you wish to kill only the next word
  733. but not the punctuation before it, simply do `M-f' to get the end, and
  734. kill the word backwards with `M-DEL'.) `M-d' takes arguments just like
  735. `M-f'.
  736.    `M-DEL' (`backward-kill-word') kills the word before point.  It
  737. kills everything from point back to where `M-b' would move to.  If
  738. point is after the space in `FOO, BAR', then `FOO, ' is killed.  (If
  739. you wish to kill just `FOO', do `M-b M-d' instead of `M-DEL'.)
  740.    `M-t' (`transpose-words') exchanges the word before or containing
  741. point with the following word.  The delimiter characters between the
  742. words do not move.  For example, `FOO, BAR' transposes into `BAR, FOO'
  743. rather than `BAR FOO,'.  *Note Transpose::, for more on transposition
  744. and on arguments to transposition commands.
  745.    To operate on the next N words with an operation which applies
  746. between point and mark, you can either set the mark at point and then
  747. move over the words, or you can use the command `M-@' (`mark-word')
  748. which does not move point, but sets the mark where `M-f' would move to.
  749. `M-@' accepts a numeric argument that says how many words to scan for
  750. the place to put the mark.  In Transient Mark mode, this command
  751. activates the mark.
  752.    The word commands' understanding of syntax is completely controlled
  753. by the syntax table.  Any character can, for example, be declared to be
  754. a word delimiter.  *Note Syntax::.
  755. File: emacs,  Node: Sentences,  Next: Paragraphs,  Prev: Words,  Up: Text
  756. Sentences
  757. =========
  758.    The Emacs commands for manipulating sentences and paragraphs are
  759. mostly on Meta keys, so as to be like the word-handling commands.
  760. `M-a'
  761.      Move back to the beginning of the sentence (`backward-sentence').
  762. `M-e'
  763.      Move forward to the end of the sentence (`forward-sentence').
  764. `M-k'
  765.      Kill forward to the end of the sentence (`kill-sentence').
  766. `C-x DEL'
  767.      Kill back to the beginning of the sentence
  768.      (`backward-kill-sentence').
  769.    The commands `M-a' and `M-e' (`backward-sentence' and
  770. `forward-sentence') move to the beginning and end of the current
  771. sentence, respectively.  They were chosen to resemble `C-a' and `C-e',
  772. which move to the beginning and end of a line.  Unlike them, `M-a' and
  773. `M-e' if repeated or given numeric arguments move over successive
  774. sentences.
  775.    Moving backward over a sentence places point just before the first
  776. character of the sentence; moving forward places point right after the
  777. punctuation that ends the sentence.  Neither one moves over the
  778. whitespace at the sentence boundary.
  779.    Just as `C-a' and `C-e' have a kill command, `C-k', to go with them,
  780. so `M-a' and `M-e' have a corresponding kill command `M-k'
  781. (`kill-sentence') which kills from point to the end of the sentence.
  782. With minus one as an argument it kills back to the beginning of the
  783. sentence.  Larger arguments serve as a repeat count.  There is also a
  784. command, `C-x DEL' (`backward-kill-sentence'), for killing back to the
  785. beginning of a sentence.  This command is useful when you change your
  786. mind in the middle of composing text.
  787.    The sentence commands assume that you follow the American typist's
  788. convention of putting two spaces at the end of a sentence; they consider
  789. a sentence to end wherever there is a `.', `?' or `!' followed by the
  790. end of a line or two spaces, with any number of `)', `]', `'', or `"'
  791. characters allowed in between.  A sentence also begins or ends wherever
  792. a paragraph begins or ends.
  793.    The variable `sentence-end' controls recognition of the end of a
  794. sentence.  It is a regexp that matches the last few characters of a
  795. sentence, together with the whitespace following the sentence.  Its
  796. normal value is
  797.      "[.?!][]\"')]*\\($\\|\t\\|  \\)[ \t\n]*"
  798. This example is explained in the section on regexps.  *Note Regexps::.
  799.    If you want to use just one space between sentences, you should set
  800. `sentence-end' to this value:
  801.      "[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*"
  802. You should also set the variable `sentence-end-double-space' to `nil'
  803. so that the fill commands expect and leave just one space at the end of
  804. a sentence.  Note that this makes it impossible to distinguish between
  805. periods that end sentences and those that indicate abbreviations.
  806. File: emacs,  Node: Paragraphs,  Next: Pages,  Prev: Sentences,  Up: Text
  807. Paragraphs
  808. ==========
  809.    The Emacs commands for manipulating paragraphs are also Meta keys.
  810. `M-{'
  811.      Move back to previous paragraph beginning (`backward-paragraph').
  812. `M-}'
  813.      Move forward to next paragraph end (`forward-paragraph').
  814. `M-h'
  815.      Put point and mark around this or next paragraph
  816.      (`mark-paragraph').
  817.    `M-{' moves to the beginning of the current or previous paragraph,
  818. while `M-}' moves to the end of the current or next paragraph.  Blank
  819. lines and text formatter command lines separate paragraphs and are not
  820. considered part of any paragraph.  Also, an indented line starts a new
  821. paragraph.
  822.    In major modes for programs (as opposed to Text mode), paragraphs
  823. begin and end only at blank lines.  This makes the paragraph commands
  824. continue to be useful even though there are no paragraphs per se.
  825.    When there is a fill prefix, then paragraphs are delimited by all
  826. lines which don't start with the fill prefix.  *Note Filling::.
  827.    When you wish to operate on a paragraph, you can use the command
  828. `M-h' (`mark-paragraph') to set the region around it.  Thus, for
  829. example, `M-h C-w' kills the paragraph around or after point.  The
  830. `M-h' command puts point at the beginning and mark at the end of the
  831. paragraph point was in.  In Transient Mark mode, it activates the mark.
  832. If point is between paragraphs (in a run of blank lines, or at a
  833. boundary), the paragraph following point is surrounded by point and
  834. mark.  If there are blank lines preceding the first line of the
  835. paragraph, one of these blank lines is included in the region.
  836.    The precise definition of a paragraph boundary is controlled by the
  837. variables `paragraph-separate' and `paragraph-start'.  The value of
  838. `paragraph-start' is a regexp that should match any line that either
  839. starts or separates paragraphs.  The value of `paragraph-separate' is
  840. another regexp that should match only lines that separate paragraphs
  841. without being part of any paragraph.  Lines that start a new paragraph
  842. and are contained in it must match only `paragraph-start', not
  843. `paragraph-separate'.  For example, normally `paragraph-start' is `"^[
  844. \t\n\f]"' and `paragraph-separate' is `"^[ \t\f]*$"'.
  845.    Normally it is desirable for page boundaries to separate paragraphs.
  846. The default values of these variables recognize the usual separator for
  847. pages.
  848. File: emacs,  Node: Pages,  Next: Filling,  Prev: Paragraphs,  Up: Text
  849. Pages
  850. =====
  851.    Files are often thought of as divided into "pages" by the "formfeed"
  852. character (ASCII control-L, octal code 014).  When you print hardcopy
  853. for a file, this character forces a page break; thus, each page of the
  854. file goes on a separate page on paper.  Most Emacs commands treat the
  855. page-separator character just like any other character: you can insert
  856. it with `C-q C-l', and delete it with DEL.  Thus, you are free to
  857. paginate your file or not.  However, since pages are often meaningful
  858. divisions of the file, Emacs provides commands to move over them and
  859. operate on them.
  860. `C-x ['
  861.      Move point to previous page boundary (`backward-page').
  862. `C-x ]'
  863.      Move point to next page boundary (`forward-page').
  864. `C-x C-p'
  865.      Put point and mark around this page (or another page)
  866.      (`mark-page').
  867. `C-x l'
  868.      Count the lines in this page (`count-lines-page').
  869.    The `C-x [' (`backward-page') command moves point to immediately
  870. after the previous page delimiter.  If point is already right after a
  871. page delimiter, it skips that one and stops at the previous one.  A
  872. numeric argument serves as a repeat count.  The `C-x ]' (`forward-page')
  873. command moves forward past the next page delimiter.
  874.    The `C-x C-p' command (`mark-page') puts point at the beginning of
  875. the current page and the mark at the end.  The page delimiter at the
  876. end is included (the mark follows it).  The page delimiter at the front
  877. is excluded (point follows it).  `C-x C-p C-w' is a handy way to kill a
  878. page to move it elsewhere.  If you move to another page delimiter with
  879. `C-x [' and `C-x ]', then yank the killed page, all the pages will be
  880. properly delimited once again.  The reason `C-x C-p' includes only the
  881. following page delimiter in the region is to ensure that.
  882.    A numeric argument to `C-x C-p' is used to specify which page to go
  883. to, relative to the current one.  Zero means the current page.  One
  884. means the next page, and -1 means the previous one.
  885.    The `C-x l' command (`count-lines-page') is good for deciding where
  886. to break a page in two.  It prints in the echo area the total number of
  887. lines in the current page, and then divides it up into those preceding
  888. the current line and those following, as in
  889.      Page has 96 (72+25) lines
  890. Notice that the sum is off by one; this is correct if point is not at
  891. the beginning of a line.
  892.    The variable `page-delimiter' controls where pages begin.  Its value
  893. is a regexp that matches the beginning of a line that separates pages.
  894. The normal value of this variable is `"^\f"', which matches a formfeed
  895. character at the beginning of a line.
  896. File: emacs,  Node: Filling,  Next: Case,  Prev: Pages,  Up: Text
  897. Filling Text
  898. ============
  899.    "Filling" text means breaking it up into lines that fit a specified
  900. width.  Emacs does filling in two ways.  In Auto Fill mode, inserting
  901. text with self-inserting characters also automatically fills it.  There
  902. are also explicit fill commands that you can use when editing text
  903. leaves it unfilled.
  904. * Menu:
  905. * Auto Fill::      Auto Fill mode breaks long lines automatically.
  906. * Fill Commands:: Commands to refill paragraphs and center lines.
  907. * Fill Prefix::      Filling when every line is indented or in a comment, etc.
  908.